package com.zyl;

import cn.dev33.satoken.SaManager;
import com.zyl.blog.common.utils.Extreme.LogUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog
 * @Package: com.zyl
 * @ClassName: AuthApplication
 * @Description: 认证模块启动类
 * @Author FinalFantasy
 * @Date 2025/6/9-09:28
 */
@SpringBootApplication(
        scanBasePackages = "com.zyl.blog",
        exclude = {SecurityAutoConfiguration.class}
)
@EnableDiscoveryClient
public class AuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class, args);
        LogUtil.info("认证模块启动成功");
        LogUtil.info("Sa-Token 配置如下：{}", SaManager.getConfig());
    }
}
